#ifndef __INETADDRESS_H__ 
#define __INETADDRESS_H__
#include <netinet/in.h>
#include <string>
using std::string;
namespace wd{

class InetAddress{

public:
    InetAddress(unsigned short port, const string &ip = "0.0.0.0");
    InetAddress(const struct sockaddr_in&);
    string ip();
    unsigned short port();
    struct sockaddr_in * get(); 

private:
    struct sockaddr_in _addr;

};

}

#endif

